Component({
    properties: {
        images: {
            type: Array,
            value: []
        },
        autoplay: {
            type: Boolean,
            value: true
        },
        interval: {
            type: Number,
            value: 3000
        },
        circular: {
            type: Boolean,
            value: true
        }
    },
    data: {
        current: 0
    },
    methods: {
        onSwiperChange(e) {
            this.setData({
                current: e.detail.current
            });
        }
    },
    observers: {
        'images': function (images) {
            this.setData({ current: 0 });
        }
    }
});